var curPageName = "admin-role";
var projectName = $("#projectName").val();
changeCurrent();

function deleterole(rid, rname){
	myConfirm("确定要删除角色【"+rname+"】？", function(){
		$.ajax({
			url:projectName+"/admin-role/ajaxdelete?var="+(new Date()).getTime(),
			type: "POST",
			dataType: "text",
			data: {"roleId":rid},
			success: function(str){
				if(str=="ok"){
					location.href=projectName+"/admin-role/index";
				} else {
					myAlert(str);
				}
			}
		})
		
		$("#myConfirmDialog").hide();
	    $("#myAlertMask").hide();
	})
}
